import { createBrowserRouter } from "react-router-dom";
import Home from "../Page/Home";
import Login from "../Page/Login";

export const routes=createBrowserRouter(
    [
        {
            path:'/',
            lazy:async()=>{
                const {default:Home}=await import('../Page/Home')
                return {
                    element:<Home/>
                }
            }
        },
        {
            path:'/login',
            lazy:async()=>{
                const {default:Login}=await import('../Page/Login')
                return {
                    element:<Login/>
                }
            }

        }
    ]
)